package clue.cards;

import clue.enums.Room;

/**
 *
 * @author Shawn
 */
public class RoomCard extends Card {

  private final Room room;

  public RoomCard(Room room) {
    this.room = room;
  }

  public Room getRoom() {
    return room;
  }

  @Override
  public int hashCode() {
    int hash = 7;
    hash = 79 * hash + (this.room != null ? this.room.hashCode() : 0);
    return hash;
  }

  @Override
  public boolean equals(Object obj) {
    if (!(obj instanceof RoomCard))
      return false;

    RoomCard o = (RoomCard) obj;
    return this.room == o.room;
  }

  @Override
  public String toString() {
    return this.room.toString();
  }
}
